package product.jbpmDesign;

import org.apache.commons.lang.math.NumberUtils;
/**
 *类描述:
 *@作者 hjl
 *@日期:2012-10-8 时间:下午03:23:35
 *@功能:用于将xml转成对应的json
 */
public class RectPosition {
	private int x,y,width,height;
	public void doSplit(String gStr){
		String[] posArray = gStr.split(",");
		x = NumberUtils.toInt(posArray[0],0);
		y = NumberUtils.toInt(posArray[1],0);
		width = NumberUtils.toInt(posArray[2],0);
		height = NumberUtils.toInt(posArray[3],0);
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
}
